import Layout from '@/layout'

const Router = {
  path: '/setting',
  component: Layout,
  redirect: '/setting-list',
  name: 'Setting',
  
  meta: {
    title: '设置',
    icon: 'icon_shezhi0'
  },
  children: [
    {
      path: 'payment-code',
      component: () => import('@/views/setting/paymentCode'),
      name: 'paymentCode',
      meta: { title: '收款码管理', noCache: true }
    },
    {
      path: 'setting-list',
      component: () => import('@/views/setting/settingList'),
      name: 'SettingList',
      meta: { title: '账号列表', noCache: true }
    },
    {
      path: 'role-list',
      component: () => import('@/views/setting/roleList'),
      name: 'RoleList',
      meta: { title: '角色权限', noCache: true }
    },
    {
      path: 'modify-pass',
      component: () => import('@/views/setting/modifyPass'),
      name: 'ModifyPass',
      meta: { title: '修改密码', noCache: true }
    },
    {
      path: 'region-setting',
      component: () => import('@/views/setting/regionSetting'),
      name: 'regionSetting',
      meta: { title: '区域设置', noCache: true }
    },
    {
      path: 'agreement',
      component: () => import('@/views/setting/agreement'),
      name: 'regionSetting',
      meta: { title: '协议', noCache: true }
    },
    {
      path: 'configversion',
      component: () => import('@/views/setting/configVersion/index'),
      name: 'configversion',
      meta: { title: '神椰版本配置', noCache: true }
    },
  ]
}

export default Router
